/**
 * related to toast.ui
 * 
 * @Author : weixy
 * @Timestamp : 2017-04-30
 */
var notify = sm("do_Notification");
var Controller = require("core/controller");
var log = require("util/log")
var navigate = require("util/navigate")
var router = require("config/router")
var server = require('config/server');
var net = require("util/net");
var page = sm("do_Page");
var dialog=sm("do_Dialog");
Controller({
	mapping:{
		"baseMoney.text":"dialData.capital",
		"interest.text":"dialData.interest",
		"overMoney.text":"dialData.overDueDisincentive",
		"contrastMoney.text":"dialData.contractAmount",
		"earlyMoney.text":"dialData.prepaymentAmt",
		"serviceMoney.text":"dialData.stageServiceAmt",
		"delayMoney.text":"dialData.dueFine",
		"returnMoney.text":"dialData.backServiceAmt",
		"otherMoney.text":"dialData.otherAmt"
	},
	data:{
		dialData:{}
	},
	event:{
		"button":{
			'touch':function(){
				dialog.close()
			}
		}
	},
	loaded:function(){
		log.info("dialog open")
		var get_data=dialog.getData();
		log.info(get_data);
		this.data.dialData=get_data;
		log.info(this.data.dialData);
		this.refresh();
		}
	})

